﻿<navigation:Page x:Class="PmuRegistry.Silverlight.Pages.Login" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"    
           xmlns:DefaultButton="clr-namespace:PmuRegistry.Silverlight.Utilities" 
           Title="NASPI PMU Registry: User Login">
    <Grid x:Name="GridUserLogin">       
        <Border Style="{StaticResource PortletBorderStyle}">
            <StackPanel Orientation="Vertical">
                <TextBlock Text="Login to NASPI PMU Registry" Foreground="#FFFFFFFF" HorizontalAlignment="Center" FontSize="{StaticResource LargerTextSize}" Padding="5" />
                <Border Background="{StaticResource PortletBackgroundBrush}">
                    <Grid x:Name="GridDeviceDetail" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        
                        <TextBlock Grid.Row="0" Grid.Column="0" Text="User Name" Style="{StaticResource GenericLabelStyle}"/>
                        <TextBox x:Name="TextBoxUserName" Grid.Row="0" Grid.Column="1" Width="{StaticResource XLargeItemSize}" Height="{StaticResource XXXSmallItemSize}" 
                                  VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold" Margin="5" DefaultButton:DefaultButtonService.DefaultButton="{Binding ElementName=ButtonLogin}"/>
                        <TextBlock Grid.Row="1" Grid.Column="0" Text="Password" Style="{StaticResource GenericLabelStyle}"/>
                        <PasswordBox x:Name="TextBoxPassword" Grid.Row="1" Grid.Column="1" Width="{StaticResource XLargeItemSize}" Height="{StaticResource XXXSmallItemSize}" 
                                  VerticalAlignment="Center" HorizontalAlignment="Left" FontWeight="Bold" Margin="5" DefaultButton:DefaultButtonService.DefaultButton="{Binding ElementName=ButtonLogin}" />
                        <Button x:Name="ButtonLogin" Grid.Row="2" Grid.Column="1" Content="../../Images/Login.png" Tag="LOGIN" Template="{StaticResource ImageButtonTemplate}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" Cursor="Hand">
                            <Button.RenderTransform>
                                <ScaleTransform x:Name="ButtonLoginTransform" ScaleX="1" ScaleY="1" />
                            </Button.RenderTransform>
                        </Button>
                        
                    </Grid>                    
                </Border>
            </StackPanel>
        </Border>
    </Grid>
</navigation:Page>
